﻿var now = new Date();
var time = now.getHours();

if (time < 10) {
	alert('Good morning!');
} else {
	alert('Good day!');
}